package org.zfes.snowier.cloud.zbss.widget.act.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.cloud.zbss.widget.act.model.ActSubjectQuestions;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ActSubjectQuestionsMapper extends BaseMapper<ActSubjectQuestions>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<ActSubjectQuestions> selectModelListPage(ParamMap params);
	
	List<ActSubjectQuestions> selectBySubjectId(@Param("subjectId")Long subjectId,@Param("status")Byte status);
	
	List<ActSubjectQuestions> selectByIds(@Param("ids")List<Long> ids);
	
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);

	int updateSubjectQuesOrder(@Param("id")Long id,@Param("newOrder")Integer newOrder);
}
